package com.sls.sys.service;

import com.sls.core.socket.Head;
import com.sls.page.Pagination;
import com.sls.sys.pojo.OperatorInfoVO;

public interface OperatorService {
	/**
	 * 用户登录
	 * 
	 * @param body
	 * @param requestId
	 * @return
	 * @throws Exception
	 */
	public OperatorInfoVO login(String body, Head head) throws Exception;

	/**
	 * 添加用户
	 * 
	 * @param body
	 * @param requestId
	 * @return
	 * @throws Exception
	 */
	public void saveOperatorInfo(String body, Head head) throws Exception;

	/**
	 * 根据用户Id更新用户信息
	 * 
	 * @param body
	 * @param requestId
	 * @return
	 * @throws Exception
	 */
	public void updateOperatorInfoById(String body, Head head)
			throws Exception;

	/**
	 * 查询所有的操作员
	 * 
	 * @param body
	 * @param requestId
	 * @return
	 * @throws Exception
	 */
	public Pagination<OperatorInfoVO> queryOperators(String body, Head head) throws Exception;

	/**
	 * 根据用户账号查询用户具体信息
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public OperatorInfoVO queryOperatorInfoByAccount(String body, Head head)
			throws Exception;
	/**
	 * 根据id查询用户具体信息
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public OperatorInfoVO queryOperatorById(String body,Head head)throws Exception;

	/**
	 * 修改密码
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public void updatePwdByAccount(String body, Head head) throws Exception;

	/**
	 * 检查账号是否被占用
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public void checkOperatorAccount(String body, Head head) throws Exception;

	/**
	 * 锁定/解锁账号
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws Exception
	 */
	public void update_lockOperator(String body, Head head) throws Exception;

	public OperatorInfoVO findbasicInfoByAccount(String body, Head head)
			throws Exception;
}
